WARNING: This program has a bug which means we need to debug it!

RULE: Each new line in a comment must start with a #.

  • Click Run and read the error message that pops up. Then click OK.
  • Line 5 should be a comment, but there's no #! Bad input means that the line cannot be read by the computer.
  • Fix this program so that line 5 starts with a # symbol. Hint: Hold down the shift button and press 3!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)